package cn.com.zcode.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.zcode.core.dao.BaseDao;
import cn.com.zcode.user.model.InviteCode;
import cn.com.zcode.user.model.User;

public interface UserDao extends BaseDao {

	public User getUser(@Param(value="username") String username,@Param(value="password")  String password);

	public User getUserById(String id);

	public User getUserByName(String name);

	public boolean checkInviteCode(String code);

	public void usedInviteCode(String userid,String code);

	public List<InviteCode> listInviteCodes();

	public List<User> findUsers(String[] userid);

}
